﻿/// <reference path="jquery-1.3.2-vsdoc.js"/>

$(document).ready(function() {

	// apply form input highlight effect
	$("fieldset input")
		.focus(function() { $(this).closest("li").addClass("selected") })
		.blur(function() { $(this).closest("li").removeClass("selected") });

	// apply auto-focus
	$(".autofocus").focus();
	
	// apply error field auto-focus
	$(".input-validation-error").focus();

	// apply error message highlight effects
	$("ul.validation-summary-errors").css("background-color", "#ff0000").animate({ backgroundColor: '#fff' }, 1000);
});
